package cn.itsource.basic.mapper;

import cn.itsource.basic.query.BaseQuery;

import java.util.List;

public interface BaseMapper<T> {
    //添加
    void add(T t);
    //修改
    void update(T t);
    //根据id删除
    void del(Long id);
    //根据id查询
    T querybyid(Long id);
    //查找所有
    List<T> qaueryall();
    //查询总条数
    Integer count(BaseQuery query);
    //高级查询加分页
    List<T> queryhigt(BaseQuery query);

}
